home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / internet / net commander 1.0 / ISP / SCRPTLST / QUANTUM.CMD < prev    next >
Encoding:
Text File  |  1996-02-16  |  3.4 KB  |  141 lines

  1. # Use this script to connect with Quantum Networking Solutions
  2. # PPP service.  Supports PPP Only.
  3. # Copyright (C) 1995 Quantum Networking Solutions, Inc.
  4. # Copyright (C) 1993,1994 Peter R Tattam
  5. # All rights reserved.
  6. #
  7.  
  8. #
  9. # set up some strings for dialing up
  10. #
  11. if ![load $number]
  12.   display \n\n"SYSTEM NOT CONFIGURED -- RUN QUANTUM SETUP"\n
  13.   abort
  14. end
  15. if ![load $username]
  16.   display \n\n"SYSTEM NOT CONFIGURED -- RUN QUANTUM SETUP"\n
  17.   abort
  18. end
  19. if ![load $password]
  20.   if [password "Enter Your Password"]
  21.       save $password
  22.   end
  23. end
  24. if ![load $modeminit]
  25.         $modeminit = "AT s0=0 x4 e0 &c1 &d2"
  26. end
  27.  
  28. $userprompt = "ogin:"
  29. $passprompt = "word:"
  30. $pppsession = "beginning...."
  31.  
  32. %attempts = 100
  33. #
  34. #
  35. #----------------------------------------------------------
  36. #
  37. # initialize modem
  38. #
  39.  
  40. display "Initialzing modem..."\n
  41.  
  42. output "atz"\13
  43. if ! [input 5 OK\n]
  44.   display "Modem is not responding"\n
  45.   display \n"Please select File->Setup above and make"\n
  46.   display "sure 'SLIP Port' and 'Baud Rate' are set to"\n
  47.   display "your modem's COM port and speed."\n
  48.   abort
  49. end
  50. #
  51. # setup our modem commands
  52. #
  53. output $modeminit\13
  54. input 5 OK\n
  55. #
  56. # send phone number
  57. #
  58.  
  59. %n = 0
  60. repeat
  61.   if %n = %attempts
  62.     display "Too many dial attempts.  Please try again later."\n
  63.     abort
  64.   end
  65.  
  66.   display \n"Dialing "$number\n
  67.   display "If number is busy, we will attempt to redial..."\n\n
  68.  
  69.   output "atdt "$number\13
  70.   %ok = [input 40 CONNECT]
  71.   %n = %n + 1
  72. until %ok
  73.  
  74. input 10 \n
  75. #
  76. #  wait till it's safe to send because some modems hang up
  77. #  if you transmit during the connection phase
  78. #
  79. # USRobotics "si" modems are brain-damaged (what USR modem isn't
  80. # brain-damaged?) and don't support DCD.  Hopefully removing this
  81. # won't break other "real" modems.
  82. #
  83. # wait 30 dcd
  84. sleep 2
  85.  
  86. #
  87. # Attempt to keep people from touching things they shouldn't be touching...
  88. #
  89. display \n\n"If you have problems connecting, please do"\n
  90. display     "not change ANY of the configuration options."\n
  91. display     "Contact Quantum's Technical Support for assistance."\n
  92.  
  93. #
  94. #  wait for the username prompt
  95. #
  96. input 30 $userprompt
  97. output $username\13
  98.  
  99. #
  100. # and the password
  101. #
  102. input 30 $passprompt
  103. output $password\13
  104.  
  105. #
  106. # Wait for PPP session login
  107. #
  108. if ! [input 10 $pppsession]
  109.   display \n\n"PPP Login Failed"\n
  110.   display \n"Please select Dialler->setup.cmd and verify"\n
  111.   display "that your local access number, login username,"\n
  112.   display "and login password are set correctly."\n
  113.   display \n"If this does not resolve your problem, contact"\n
  114.   display "Quantum's Technical Support for assistance."\n
  115.   display \n"DO NOT CHANGE ANY OTHER SETTINGS BEFORE CALLING"\n
  116.   display \n"QUANTUM'S TECHNICAL SUPPORT.  THANK YOU."\n
  117.   abort
  118. end
  119.  
  120. #
  121. # we are now logged in
  122. #
  123.  
  124. display \n\n"*********************************************"\n
  125. display     "** WELCOME TO QUANTUM NETWORKING SOLUTIONS **"\n
  126. display     "*********************************************"\n\n
  127.  
  128. display "You may now minimize this window and start Netscape"\n
  129. display "or any other TCP/IP client application."\n\n
  130.  
  131. display \n"Thank you for choosing Quantum Networking Solutions."
  132.  
  133. #
  134. # now we are finished.
  135. #
  136. Content-Type: TEXT/PLAIN; charset=US-ASCII; name="bye.cmd"Content-ID: <Pine.OS2.3.91.960216151658.265D@banjo.qnet.com>
  137. Content-Description: 
  138.  
  139. set dtr off
  140. sleep 1
  141. set dtr on